﻿$(document).ready(function () {
    window.setInterval(function () {
        //check if there is render task in the waiting list
        $.get(pathPrefix + "Render/GetRenderTasks", null, function (task) {
            if (task != null) {
                //open the Flex album render proccess in a new window
                window.open($("#Url").val() + "&albumId=" + task.AlbumId);
            }
        }, "json");
    }, 10000);
});